package com.example.sls.service.impl.social;

import com.example.sls.pojo.social.UserGroups;
import com.example.sls.dao.social.UserGroupsDao;
import com.example.sls.service.intserfaces.social.UserGroupsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 用户群组表(UserGroups)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:54:52
 */
@Service
public class UserGroupsServiceImpl implements UserGroupsService {
  @Autowired
  UserGroupsDao userGroupsDao;

  @Override
  public UserGroups queryById(Integer id) {
    return userGroupsDao.queryById(id);
  }

  @Override
  public int deleteById(Integer id) {
    return userGroupsDao.deleteById(id);
  }

  @Override
  public int update(UserGroups userGroups) {
    return userGroupsDao.update(userGroups);
  }

  @Override
  public int insert(UserGroups userGroups) {
    return userGroupsDao.insert(userGroups);
  }

  @Override
  public long count() {
    return userGroupsDao.count();
  }

  @Override
  public List<UserGroups> queryAllByLimit(UserGroups userGroups, Integer pageSize, Integer offset) {
    return userGroupsDao.queryAllByLimit(userGroups, pageSize, offset);
  }
}
